define([], function() {

	var View = Piece.View.extend({

		el: '#service-index',

		type: 'portal',

		render: function() {

			var queryAction = Piece.Session.loadObject('moduleIndex');
			if (queryAction) {
				Piece.Session.deleteObject('moduleIndex');
				window.history.back();
				return false;
			}
			Piece.Session.saveObject('moduleIndex', 'out');

			Backbone.history.navigate('service/service', {
				trigger: true
			});
			return this;
		},
		onShow: function() {
			//write your business logic here :)
		}
	});

	return View;

});